﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MpSoft.Library.BUSS.Contents;

namespace MpSoft.Web.Controls.Advs
{
    public partial class AdvRegion : System.Web.UI.UserControl
    {
        #region Var
        #endregion
        
        #region Method

        private void BindControl()
        {
            var list = AdvBUSS.Adv_List(RegionID, 1);
            rpAdvs.DataSource = list;
            rpAdvs.DataBind();
        }

        #endregion
        
        #region Event
        
        protected void Page_Load(object sender, EventArgs e)
        {
            BindControl();
        }
        
        #endregion

        #region Properties

        public int RegionID { set; get; }

        #endregion
    }
}